#ifndef AUDIO_H
#define AUDIO_H

#include <QDialog>
#include <QTimer>
#include <QProcess>
#include <QButtonGroup>

namespace Ui {
    class Audio;
}

class Audio : public QDialog {
    Q_OBJECT
public:
    Audio(QWidget *parent = 0);
    ~Audio();
    void SetMainBacklight();

private slots:
    void on_play_clicked();

    void on_stop_clicked();

    void on_add_clicked();

    void timerdone();

    void output();

    void on_pause_clicked();

    void on_slider_sliderMoved(int position);

    void on_del_clicked();

    void on_record_clicked();

    void on_close_clicked();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::Audio *ui;
    QButtonGroup *btg;
    QTimer *timer;
    QProcess *process;
    QProcess *process2;
    QString  filename;
    bool playing;
};

#endif // AUDIO_H
